package com.qiaofang.applet.service.member.service;

import com.qiaofang.applet.common.base.BaseService;
import com.qiaofang.applet.service.member.domain.MemberBrowse;
import com.qiaofang.applet.service.member.service.dto.MemberBrowseListQueryDto;
import com.qiaofang.applet.service.member.service.dto.MemberBrowseQueryDto;
import com.qiaofang.applet.service.member.service.dto.MemberBrowseSaveDto;
import com.qiaofang.applet.service.property.service.dto.VisitorResponseDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * 会员浏览记录服务接口
 *
 * @author daiyuxiang
 * @Time 2020-09-30
 */
@Deprecated
public interface MemberBrowseService extends BaseService<MemberBrowse, String> {

    /**
     * 分页查询会员浏览记录记录
     *
     * @param queryDto: 查询条件
     * @param pageable: 分页参数
     * @return Page<MemberFocus>: 会员浏览记录集合
     * @author daiyuxiang
     */
    Page<MemberBrowse> findBusinessListByParams(MemberBrowseQueryDto queryDto, Pageable pageable);


    List<MemberBrowse> getExportList(MemberBrowseListQueryDto queryDto);

    /**
     * 访客提醒推送
     * @param memberBrowseSaveDto
     * @param employeeUniqueUuid
     */
    void sentWxSubscribeMessage(MemberBrowseSaveDto memberBrowseSaveDto, String employeeUniqueUuid);

    /**
     * 访客列表 刷新已读状态
     * @param employeeUniqueUuid
     */
    void refreshBrowseStatus(String employeeUniqueUuid);

    /**
     * 经纪人访客详情
     * @param employeeUniqueUuid
     * @return
     */
    VisitorResponseDto getEmployeeVisitors(String employeeUniqueUuid);

    /**
     * 添加浏览记录
     * @param memberBrowseSaveDto
     */
    String addOrUpdate(MemberBrowseSaveDto memberBrowseSaveDto);


}
